import request from '@/utils/request'

/**
 * 获取员工分页数据
 * @returns
 */
export const getUserpage = params => request.get('/business-hall/user/page', { params })

/**
 * 获取树状机构信息
 * @returns
 */
export const gettree = () => request.get('/business-hall/tree')

/**
 * 根据机构查询快递员
 * @param {*} id
 * @returns
 */
export const getAgency = id => request.get(`/business-hall/courier/findByAgencyId/${id}`)

/**
 * 获取机构详情
 * @param {*} id
 * @returns
 */
export const getBusiness = id => request.get(`/business-hall/{id}`)
